* Fix oddity with open tag parameters getting stuck on </li>
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 04:35:19 +0000 (04:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 04:35:19 +0000 (04:35 +0000)
RELEASE-NOTES
includes/Sanitizer.php
maintenance/parserTests.txt

index 8d7fbe2..0eb51ed 100644 (file)
@@ -397,6 +397,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * When showing the "blah has been undeleted" page, make sure it's a blue link
 * parserTests.php accepts a --file parameter to run an alternate test sutie
 * parser tests can now test extensions using !!hooks sections
+* Fix oddity with open tag parameters getting stuck on </li>
 
 
 == Compatibility ==
index 25f4d57..30c3a21 100644 (file)
@@ -400,8 +400,8 @@ class Sanitizer {
                                                        if ( $t == 'table' ) {
                                                                $tagstack = array_pop( $tablestack );
                                                        }
-                                                       $newparams = '';
                                                }
+                                               $newparams = '';
                                        } else {
                                                # Keep track for later
                                                if ( in_array( $t, $tabletags ) &&
index 5732c10..b65ded1 100644 (file)
@@ -4013,6 +4013,15 @@ HTML nested ordered list, open tags (bug 5497)
 
 !! end
 
+!! test
+HTML ordered list item with parameters oddity
+!! input
+<ol><li id="fragment">One</li></ol>
+!! result
+<ol><li id="fragment">One</li></ol>
+
+!! end
+
 !!test
 bug 5918: autonumbering
 !! input